package com.ruoyi.products.service;


import com.ruoyi.common.config.wx.pay.WxPayInfo;
import com.ruoyi.products.domain.BussOrder;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.net.URISyntaxException;
import java.util.Map;


/**
 * 微信支付相关接口
 *
 * @author xsk
 */

public interface IWxPayService {


    WxPayInfo createOrder(BussOrder bo) throws IOException;
//
    Map parseOrderNotifyResult(HttpServletRequest servletRequest);
//
//    String refund(BussOrder bo) throws IOException;
//
//    JSONObject queryWxOrder(Long stuUserId) throws URISyntaxException, IOException;
//
//    JSONObject queryByOrderNo(String orderNo) throws IOException, URISyntaxException;
//
//    String CloseWxOrder(Long stuUserid) throws IOException;
//
//    String getAppletUrl(Long stuUserId) throws Exception;

    Map getWxConfig(String url) throws Exception;

    void paySuccess(String openId);
}

